package com.yang.cycle;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("cycle.xml");
        Car car = (Car) ioc.getBean("car");
        System.out.println(car);
        ioc.close();
        /***
         * Car的构造方法
         * Car的Set方法
         * Car的初始化方法
         * com.yang.cycle.Car@59fa1d9b
         * 八月 22, 2019 4:23:12 下午 org.springframework.context.support.ClassPathXmlApplicationContext doClose
         * 信息: Closing org.springframework.context.support.ClassPathXmlApplicationContext@306a30c7: startup date [Thu Aug 22 16:23:12 CST 2019]; root of context hierarchy
         * Car的销毁方法
         *
         *
         * */
    }
}
